<?php

namespace App\Admin\Controllers;

use App\Http\Controllers\Controller;
use Encore\Admin\Admin;
use Encore\Admin\Layout\Content;
use Encore\Admin\Widgets\Box;
use Encore\Chartjs\Chartjs;
use Encore\ECharts\ECharts;

class DateEarningsController extends Controller
{
    public function index(Content $content)
    {
        $content->js = Admin::js('vendor/laravel-admin-ext/echarts/echarts.min.js');
        return $content
            ->title('今日总收益')
            ->description('今日')
            ->view('admin.chart', ['title' => '折线图']);
    }
}
